package com.zibo.convalesce.common.result;

/**
 * 
 */
public enum AjaxResultCode {
	
	SUCCESS(200, "成功"),
    FAILED(-1, "系统执行出错"),
    UNAUTHORIZED(401, "鉴权出错"),
    UNTOKEN(402, "token失效,请重新登录"),
    CHECKMESS(403, "您已获取过验证码"),
    EXCEPTION(500, "系统异常");

    AjaxResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private final int code;

    private final String msg;
    
}
